package com.ljx.itbbs.server.article.service;

import cn.hutool.http.server.HttpServerResponse;
import com.ljx.itbbs.server.article.domain.entity.ResourceEntity;
import com.ljx.itbbs.server.article.domain.vo.req.ArticleResourceUploadReq;

import javax.servlet.http.HttpServletResponse;
import java.util.List;

public interface ResourceService {


    Long uploadArticleResource(Long userId, ArticleResourceUploadReq req);

    void batchUpdateResource(List<Long> resourcesList, Integer isFree, Integer integral, Long articleId);

    List<ResourceEntity> getByArticleId(Long articleId);

    void download(Long userId, Long resourceId, HttpServletResponse response);

    void increaseDownloadNum(Long resourceId);

    ResourceEntity getById(Long objId);

    void deleteArticleResource(Long articleId);

    void clearArticleId(Long articleId);
}
